from django.contrib import admin
from auto_sale.models import *
# import auto_sale.models as am


# Register your models here.

class product_admin(admin.ModelAdmin):
    list_display = ('id', 'name', 'url')


class size_admin(admin.ModelAdmin):
    list_display = ('id', 'name', 'product', 'spider_size_id')

class color_admin(admin.ModelAdmin):
    list_display = ('id', 'name', 'product', 'spider_color_id')


class booth_image_admin(admin.ModelAdmin):
    list_display = ('id', 'local_path', 'net_path', 'product')


class detail_image_admin(admin.ModelAdmin):
    list_display = ('id', 'local_path', 'net_path', 'product', 'is_valid')


admin.site.register(Product, product_admin)
admin.site.register(Color, color_admin)
admin.site.register(Size, size_admin)
admin.site.register(BoothImage, booth_image_admin)
admin.site.register(DetailImage, detail_image_admin)
